/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>

using namespace std;

int main_25()
{
    for (int x=1; ;++x )
    {
        int n=x*x;
        if (n<1000)
        {
            continue;
        }
        if (n>9999)
        {
            break;
        }
        int higher=n/100;
        int lower=n%100;
        if (higher/10==higher%10&&lower/10==lower%10)
        {
            printf("%d\n",n);
        }
    }
	return 0;
}
